package com.ciaojian.core.model;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 休息时间变动记录
 *
 * @author oxiny
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
@TableName("d_break_record")
public class BreakRecord extends Model<BreakRecord> {
    @TableId("id")
    private Integer id;

    @ApiModelProperty("时长")
    private Integer amount;

    @ApiModelProperty("更改前剩余时长")
    private Integer beforeChange;

    @ApiModelProperty("更改后剩余时长")
    private Integer afterChange;

    @ApiModelProperty("变动原因")
    private String reason;

    private Date createTime;
}
